package com.java.mapper;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.java.po.Student;

public interface StudentMapper {
	// 添加一条数据
	int insertStudent(Student student) throws Exception;

	// 修改一条数据
	int updateStudent(Student student) throws Exception;

	// 删除一条数据
	int deleteStudent(int id) throws Exception;

	// 查询一条数据
	Student findByuserNameAndStudentId(@Param("username") String username, @Param("studentid") int studentid,
			@Param("password") String password);

	// 总记录数
	int record() throws SQLException;

	// 查询多条数据
	List<Student> findList(Map<String, Object> queryMap);
}
